/****************************************************************************
 * Copyright (c) 2008, 2009 Andreas Unger and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    Andreas Unger - initial API and implementation 
 ****************************************************************************/

package org.eclipselabs.damos.codegen.c;

import org.eclipselabs.damos.execution.executionmodel.Node;

/**
 * @author Andreas Unger
 *
 */
public abstract class AbstractComponentCGenerator implements ComponentCGenerator {

	private Node node;
	private CCodegenContext context;

	/* (non-Javadoc)
	 * @see org.eclipselabs.damos.codegen.c.BlockCGenerator#getNode()
	 */
	public Node getNode() {
		return node;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipselabs.damos.codegen.c.BlockCGenerator#setNode(org.eclipselabs.damos.execution.executionmodel.Node)
	 */
	public void setNode(Node node) {
		this.node = node;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipselabs.damos.codegen.c.BlockCGenerator#getContext()
	 */
	public CCodegenContext getContext() {
		return context;
	}
	
	/* (non-Javadoc)
	 * @see org.eclipselabs.damos.codegen.c.BlockCGenerator#setContext(org.eclipselabs.damos.codegen.c.CCodegenContext)
	 */
	public void setContext(CCodegenContext context) {
		this.context = context;
	}
		
}
